import request from "@/utils/request";
export function listTalks(param) {
    return request({
        url:'/talks',
        method:'get',
        params:param
    })
}

export function like(id) {
    return request({
        url:'/talks/' + id + '/like',
        method:'post'
    })
}

export function getTalkById(talkId) {
    return request({
        url:'/talks/'+talkId,
        method:'get'
    })

}
